package com.bycx.dingxinlc.wxpay;

import java.io.InputStream;

import com.bycx.core.startup.AppConfig;
import com.github.wxpay.sdk.WXPayConfig;

/**
 * 鼎信联创微信支付配置
 * 
 * @ClassName: DxlcWXPayConfig
 * @author Allen
 * @date 2018年4月18日
 */
public class DxlcWXPayConfig implements WXPayConfig {
	private String appId;
	private String mchId;
	private String key;
	private InputStream certStream;
	private int httpConnectTimeoutMs;
	private int httpReadTimeoutMs;

	public DxlcWXPayConfig() {
		this.appId = AppConfig.get("wx_appid");
		this.mchId = AppConfig.get("wx_pay_mch_id");
		this.key = AppConfig.get("wx_pay_key");
		this.certStream = null;
		this.httpConnectTimeoutMs = 10000;
		this.httpReadTimeoutMs = 10000;
	}

	@Override
	public String getAppID() {
		return this.appId;
	}

	@Override
	public String getMchID() {
		return this.mchId;
	}

	@Override
	public String getKey() {
		return this.key;
	}

	@Override
	public InputStream getCertStream() {
		return this.certStream;
	}

	@Override
	public int getHttpConnectTimeoutMs() {
		return this.httpConnectTimeoutMs;
	}

	@Override
	public int getHttpReadTimeoutMs() {
		return this.httpReadTimeoutMs;
	}

}
